#include "fisiere.h"
#include "sirCaractere.h"
fisier::fisier()
{
}
fisier::~fisier()
{}
int fisier::size()
{
    return sir.size();
}


istream& operator>>(istream& fin, fisier f)
{
    sirCaractere s;
    while(!fin.eof())
    {
        fin>>s;
        f.sir.push_back(s);
    }
    for (vector<sirCaractere>::iterator i=f.sir.begin();i!=f.sir.end();i++)
        cout<<*i<<endl;
    return fin;
}
ostream& operator<<(ostream& out, fisier f)
{
    for (vector<sirCaractere>::iterator i=f.sir.begin();i!=f.sir.end();i++)
        out<<*i;
    return out;
}